﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Brjostagjof.Models.VideoViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Brjóstagjöf - Skrá Myndband
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h1>Skrá myndband</h1>
    <% using (Html.BeginForm("UploadVideo", "Home", FormMethod.Post, new { enctype = "multipart/form-data" }))
    { %>
        <p>
            Spilarinn tekur aðeins við skrám af taginu .mov, .mp4 og .f4v.
            Þessar skrár verða að innihalda myndbönd sem hafa H.265 codec og hljóð með AAC codec.
        </p>

        <div>
            <label for="video_VideoData">Vinsamlegast veljið myndband:</label>
        </div>
        <div>
            <input type="file" id="videoFile" name="videoFile" />
        </div>

        <div>
            <label for="video_VideoTitle">Titill:</label><br />
            <%: Html.TextBoxFor(model => Model.video.VideoTitle) %>
            <%: Html.ValidationMessageFor(model => Model.video.VideoTitle) %>
        </div>
        <div>
            <label for="video_VideoMessage">Lýsing á myndbandi:</label><br />
            <%: Html.TextAreaFor(model => Model.video.VideoMessage, new { cols = 50, rows = 10 })%>
            <%: Html.ValidationMessageFor(model => Model.video.VideoMessage) %>
        </div>
        <p>
            <input type="submit" value="Vista Myndband" />
        </p>
    <%} %>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Actions" runat="server" >
    <%Html.RenderPartial("PartialViews/Actions", "Video"); %>
</asp:Content>
